-if has_session? 
  %ul
    %li
      =link_to t(:user_my_profile), :controller=>:users, :action=>:show, :id=>user_session.user_id
    -if facebook_session_secured?
      %li
        = link_to_function t(:logout), 'FB.Connect.logout(function() {logout()})',:id=>"logout_link"
    -else
      %li
        =link_to t(:logout), :controller=>:sessions, :action=>:destroy
      
-else
  %ul
    %li
      =link_to t(:register_user), :controller=>:users, :action=>:new
    %li
      =link_to t(:login), new_session_url